import { Constant } from "../../Constant";
import { Main } from "../../Main";
import StateBase from "../StateBase";

export default class ClearSecondRecruitState extends StateBase {
    begin(preState: number): void {
        super.begin(preState);
       // console.log('ClearSecondRecruitState state--begin');
        const main = this.getUserData() as Main;
        main.secRoundRoles.forEach(e => e.node.active = false);
        main.roundTips[1].clear();
        main.mainFsm.goToState(Constant.MainState.SecondRoleEnter, main);

    }

    end(nextState: number): void {
        super.end(nextState);
       // console.log('ClearSecondRecruitState state--end');
    }
}